package uz.edo.app.client;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.Page;

import uz.edo.security.MyAuthenticatedPage;

import java.util.HashMap;

public class ErrorPage extends MyAuthenticatedPage
{
    public ErrorPage(){}
    public ErrorPage(Page page, Exception ex)
    {
        super();
        add(new Label("message", page.getPageMapName() + ex.toString()));
    }
    public boolean isAuthorized(HashMap<?,?> rights)
    {
        return true;
    }
    protected String getPageName()
    {
        return "Error page";
    }

//    @Override
//	protected String getSubPageName() {
//		return "";
//	}
}